#ifndef FINANCEDB_FDBDATA_H
#define FINANCEDB_FDBDATA_H

#include "Etime.h"

struct PriceNode
{
  // these are the members that are actually used by the ewave_lib for creating monowaves etc.
  float      mPrice;                   // in case of high-low input data, make this the mean of high and low, otherwise make it same as "mLast"
  ETime      mDate;

  // these members are here for plotting etc outside ewave_lib.
  float      mLast;
  float      mOpen;
  float      mHigh;
  float      mLow;
  float      mVolume;

  PriceNode() {}
  void Clear() { mDate = 0; mPrice = mOpen = mHigh = mLow = mLast = mVolume = 0.0f; }
};

typedef std::vector<PriceNode> PriceNodeVec;


#endif
